package com.qys.livesMall.shop.modal.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 店铺流量明细表
 * (ShopDataDetail)表实体类
 *
 * @author makejava
 * @since 2023-08-26 11:29:32
 */

@Data
public class ShopDataDetailVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "id")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "店铺id")
    private Long shopId;

    @Schema(description = "店铺名称")
    private String shopName;

    @Schema(description = "用途")
    private String useType;

    @Schema(description = "交易类型（1增加，2减少）")
    private Integer dealType;

    @Schema(description = "单位(1流量、2次数)")
    private Integer unit;

    @Schema(description = "本次交易量")
    private Integer volume;

    @Schema(description = "剩余量")
    private Integer surplus;

    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}

